// pressure 数据统计的api
import request from '../utils/request'

// 统计数据查询
export let pressureGet = (page: number, limit: number, timeValue: Array<string>) => {
    let where = null
    if (timeValue[0]) {
        where = { time: { $gte: timeValue[0], $lt: timeValue[1] } }
    }
    else {
        where = null
    }
    let skip = (page - 1) * 10
    return request.get('/classes/dayPressureStatistics', {
        params: {
            limit,
            skip,
        }
    })
}
